<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
	layout:decorator="main">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>更新商铺信息</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/school/distpicker.data.js"></script>
<script type="text/javascript" src="js/school/distpicker.js"></script>



<script type="text/javascript">
	$(document).ready(function(e) {
		$(".select1").uedSelect({
			width : 345
		});
		$(".select2").uedSelect({
			width : 167
		});
		$(".select3").uedSelect({
			width : 100
		});
	});
</script>
</head>

<body layout:fragment="content">
	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="/ordering/home">首页</a></li>
			<li><a href="#">修改学校信息</a></li>
		</ul>
	</div>
	<div class="formbody">
		<div id="usual1" class="usual">
			<div class="itab">
				<ul>
					<li><a href="#tab1" class="selected">修改学校信息</a></li>
				</ul>
			</div>
			<form id="updateForm" action="updateSchool" method="post"
				th:object="${school}">
				<div id="tab1" class="tabson">
					<ul class="forminfo">
						<li><label>名称<b>*</b></label><input type="text"
							class="dfinput" style="width: 518px;" th:field="*{name}"
							th:value="*{name}" /></li>
						<div id="distpicker">
							<li><label>省份<b>*</b></label><select th:field="*{province}" th:value="*{province}" th:text="*{province}" class="dfinput" style="width: 518px;"></select> <br /></li>
							<li><label>市<b>*</b></label><select th:field="*{city}" th:value="*{city}" th:text="*{city}" class="dfinput" style="width: 518px;"></select> <br /></li>
							<li><label>区<b>*</b></label><select th:field="*{area}" th:value="*{area}" th:text="*{area}" class="dfinput" style="width: 518px;"></select> <br /></li>
						</div>
						<li><input type="hidden" name="id" th:value="*{id}" /></li>
						<li><label>&nbsp;</label><input id="goForm" type="submit"
							class="btn" value="保存信息" /></li>
					</ul>
				</div>
			</form>

		</div>

		<script type="text/javascript">
			$("#distpicker").distpicker({
				  province: "[[${school.province}]]",
				  city: "[[${school.city}]]",
				  district: "[[${school.area}]]"
			});
			$("#distpicker").distpicker({
		  		autoSelect: false
			});
		</script>
	</div>

</body>
</html>
